package com.haoyeteng.sxbd.modular.business.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;

import org.hibernate.validator.constraints.NotEmpty;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 资质认证表
 * </p>
 *
 * @author haoyeteng123
 * @since 2019-05-17
 */
@TableName("bus_auth")
public class Auth extends Model<Auth> {

    private static final long serialVersionUID = 1L;

    /**
     * 资质认证Id
     */
    @TableId(value = "auth_id", type = IdType.AUTO)
    private Integer authId;
    /**
     * 用户Id
     */
    @TableField("user_id")
    private Integer userId;
    /**
     * 机构名称
     */
    @TableField("organ_name")
    @NotEmpty(message="机构名称不能为空")
    private String organName;
    /**
     * 机构类型(0:测绘资质单位,1政府单位（无资质）,仪器公司(无资质),3.高校/科研院所(无资质),4.其他非测绘资质执证企业)
     */
    @TableField("organ_type")
    private Integer organType;
    /**
     * 测绘资质等级(1.甲级;2.乙级;3.丙级;4.丁级)
     */
    @TableField("mapping_grade")
    private Integer mappingGrade;
    /**
     * 测绘资质证书编号
     */
    @TableField("mapping_no")
    @NotEmpty(message = "测绘资质证书编号不为空")
    private String mappingNo;
    /**
     * 组织机构编号
     */
    @TableField("organ_no")
    @NotEmpty(message = "组织机构编号不为空")
    private String organNo;
    /**
     * 申请类型(0.法定代表人申请;1.经办人申请)
     */
    @TableField("apply_type")
    private Integer applyType;
    /**
     * 法定代表人姓名
     */
    @TableField("legal_person_name")
	/* @NotEmpty(message = "法定代表人姓名不为空") */
    private String legalPersonName;
    /**
     * 法定代表人电话
     */
    @TableField("legal_person_phone")
    @NotEmpty(message = "法定代表人电话不为空")
    private String legalPersonPhone;
    /**
     * 机构地址-省
     */
    @NotEmpty(message = "机构地址不为空")
    private String province;
    /**
     * 机构地址-市
     */
    @NotEmpty(message = "机构地址不为空")
    private String city;
    /**
     * 机构地址-区
     */
    @NotEmpty(message = "机构地址不为空")
    private String area;
    /**
     * 机构地址-详细地址
     */
    @NotEmpty(message = "机构详细地址不为空")
    private String address;
    /**
     * 测绘资质复印件（盖章）
     */
    @TableField("mapping_image")
    @NotEmpty(message = "机构地址不为空")
    private String mappingImage;
    /**
     * 组织机构代码证复印件（盖章）
     */
    @TableField("organ_image")
    @NotEmpty(message = "组织机构代码证复印件(盖章)不为空")
    private String organImage;
    /**
     * 法定代表人身份证(正面)
     */
    @TableField("legal_front_image")
    @NotEmpty(message = "法定代表人身份证(正面)不为空")
    private String legalFrontImage;
    /**
     * 法定代表人身份证(反面)
     */
    @TableField("legal_back_image")
    @NotEmpty(message = "法定代表人身份证(反面)不为空")
    private String legalBackImage;
    /**
     * 经办人身份证(正面)
     */
    @TableField("operator_front_image")
    @NotEmpty(message = "经办人身份证(正面)不为空")
    private String operatorFrontImage;
    /**
     * 经办人身份证(反面)
     */
    @TableField("operator_back_image")
    @NotEmpty(message = "经办人身份证(反面)不为空")
    private String operatorBackImage;
    /**
     * 服务保密协议扫描件（盖章）
     */
    @TableField("nda_image")
    private String ndaImage;
    /**
     * 授权委托书扫描件（盖章）
     */
    @TableField("empower_image")
    @NotEmpty(message = "授权委托书扫描件(盖章)不为空")
    private String empowerImage;
    /**
     * 联系人姓名
     */
    @TableField("link_name")
    @NotEmpty(message = "联系人姓名不为空")
    private String linkName;
    /**
     * 联系人电话
     */
    @TableField("link_phone")
    @NotEmpty(message = "联系人电话不为空")
    private String linkPhone;
    /**
     * 联系人电子邮箱
     */
    @TableField("link_email")
    @NotEmpty(message = "联系人电子邮箱不为空")
    private String linkEmail;
    /**
     * 联系人QQ
     */
    @TableField("link_qq")
    private String linkQq;
    /**
     * 联系人微信号
     */
    @TableField("link_wechat")
    private String linkWechat;
    /**
     * 资质认证状态(0.待审核;1.审核通过;2.驳回)
     */
    @TableField("auth_state")
	/* @NotEmpty(message = "资质认证状态不为空") */
    private Integer authState;
    /**
     * 驳回理由
     */
    @TableField("reject_reason")
    private String rejectReason;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;
    /**
     * 删除标记
     */
    @TableLogic
    private Integer flag;

    public Integer getAuthId() {
		return authId;
	}

	public void setAuthId(Integer authId) {
		this.authId = authId;
	}

	public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getOrganName() {
        return organName;
    }

    public void setOrganName(String organName) {
        this.organName = organName;
    }

    public Integer getOrganType() {
        return organType;
    }

    public void setOrganType(Integer organType) {
        this.organType = organType;
    }

    public Integer getMappingGrade() {
        return mappingGrade;
    }

    public void setMappingGrade(Integer mappingGrade) {
        this.mappingGrade = mappingGrade;
    }

    public String getMappingNo() {
        return mappingNo;
    }

    public void setMappingNo(String mappingNo) {
        this.mappingNo = mappingNo;
    }

    public String getOrganNo() {
        return organNo;
    }

    public void setOrganNo(String organNo) {
        this.organNo = organNo;
    }

    public Integer getApplyType() {
        return applyType;
    }

    public void setApplyType(Integer applyType) {
        this.applyType = applyType;
    }

    public String getLegalPersonName() {
        return legalPersonName;
    }

    public void setLegalPersonName(String legalPersonName) {
        this.legalPersonName = legalPersonName;
    }

    public String getLegalPersonPhone() {
        return legalPersonPhone;
    }

    public void setLegalPersonPhone(String legalPersonPhone) {
        this.legalPersonPhone = legalPersonPhone;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getMappingImage() {
        return mappingImage;
    }

    public void setMappingImage(String mappingImage) {
        this.mappingImage = mappingImage;
    }

    public String getOrganImage() {
        return organImage;
    }

    public void setOrganImage(String organImage) {
        this.organImage = organImage;
    }

    public String getLegalFrontImage() {
        return legalFrontImage;
    }

    public void setLegalFrontImage(String legalFrontImage) {
        this.legalFrontImage = legalFrontImage;
    }

    public String getLegalBackImage() {
        return legalBackImage;
    }

    public void setLegalBackImage(String legalBackImage) {
        this.legalBackImage = legalBackImage;
    }

    public String getOperatorFrontImage() {
        return operatorFrontImage;
    }

    public void setOperatorFrontImage(String operatorFrontImage) {
        this.operatorFrontImage = operatorFrontImage;
    }

    public String getOperatorBackImage() {
        return operatorBackImage;
    }

    public void setOperatorBackImage(String operatorBackImage) {
        this.operatorBackImage = operatorBackImage;
    }

    public String getNdaImage() {
        return ndaImage;
    }

    public void setNdaImage(String ndaImage) {
        this.ndaImage = ndaImage;
    }

    public String getEmpowerImage() {
        return empowerImage;
    }

    public void setEmpowerImage(String empowerImage) {
        this.empowerImage = empowerImage;
    }

    public String getLinkName() {
        return linkName;
    }

    public void setLinkName(String linkName) {
        this.linkName = linkName;
    }

    public String getLinkPhone() {
        return linkPhone;
    }

    public void setLinkPhone(String linkPhone) {
        this.linkPhone = linkPhone;
    }

    public String getLinkEmail() {
        return linkEmail;
    }

    public void setLinkEmail(String linkEmail) {
        this.linkEmail = linkEmail;
    }

    public String getLinkQq() {
        return linkQq;
    }

    public void setLinkQq(String linkQq) {
        this.linkQq = linkQq;
    }

    public String getLinkWechat() {
        return linkWechat;
    }

    public void setLinkWechat(String linkWechat) {
        this.linkWechat = linkWechat;
    }

    public Integer getAuthState() {
        return authState;
    }

    public void setAuthState(Integer authState) {
        this.authState = authState;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getRejectReason() {
		return rejectReason;
	}

	public void setRejectReason(String rejectReason) {
		this.rejectReason = rejectReason;
	}

	public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    @Override
    protected Serializable pkVal() {
        return this.authId;
    }

    @Override
    public String toString() {
        return "Auth{" +
        "authId=" + authId +
        ", userId=" + userId +
        ", organName=" + organName +
        ", organType=" + organType +
        ", mappingGrade=" + mappingGrade +
        ", mappingNo=" + mappingNo +
        ", organNo=" + organNo +
        ", applyType=" + applyType +
        ", legalPersonName=" + legalPersonName +
        ", legalPersonPhone=" + legalPersonPhone +
        ", province=" + province +
        ", city=" + city +
        ", area=" + area +
        ", address=" + address +
        ", mappingImage=" + mappingImage +
        ", organImage=" + organImage +
        ", legalFrontImage=" + legalFrontImage +
        ", legalBackImage=" + legalBackImage +
        ", operatorFrontImage=" + operatorFrontImage +
        ", operatorBackImage=" + operatorBackImage +
        ", ndaImage=" + ndaImage +
        ", empowerImage=" + empowerImage +
        ", linkName=" + linkName +
        ", linkPhone=" + linkPhone +
        ", linkEmail=" + linkEmail +
        ", linkQq=" + linkQq +
        ", linkWechat=" + linkWechat +
        ", authState=" + authState +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", flag=" + flag +",rejectReason="+rejectReason+
        "}";
    }
}
